package com.pzb.market.mapper;

import java.util.List;
import com.pzb.market.domain.MkDiscount;

/**
 * 店铺活动Mapper接口
 * 
 * @author pzb
 * @date 2021-10-12
 */
public interface MkDiscountMapper 
{
    /**
     * 查询店铺活动
     * 
     * @param id 店铺活动主键
     * @return 店铺活动
     */
    public MkDiscount selectMkDiscountById(Long id);

    /**
     * 查询店铺活动列表
     * 
     * @param mkDiscount 店铺活动
     * @return 店铺活动集合
     */
    public List<MkDiscount> selectMkDiscountList(MkDiscount mkDiscount);

    /**
     * 新增店铺活动
     * 
     * @param mkDiscount 店铺活动
     * @return 结果
     */
    public int insertMkDiscount(MkDiscount mkDiscount);

    /**
     * 修改店铺活动
     * 
     * @param mkDiscount 店铺活动
     * @return 结果
     */
    public int updateMkDiscount(MkDiscount mkDiscount);

    /**
     * 删除店铺活动
     * 
     * @param id 店铺活动主键
     * @return 结果
     */
    public int deleteMkDiscountById(Long id);

    /**
     * 批量删除店铺活动
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMkDiscountByIds(Long[] ids);

    public List<Long> selectClassIdByDiscount(Long discountId);

    public int deleteDiscountClassByDiscountId(Long discountId);

    public int deleteDiscountClassByDiscountIds(Long[] discountIds);

    public int batchSaveDiscountClass(MkDiscount mkDiscount);

    public int batchInsertDiscountGoods(MkDiscount mkDiscount);

    public int deleteMkDiscountGoodsByIds(Long[] ids);

    public int deleteMkDiscountGoodsByDiscountId(Long discountId);

    public int deleteMkDiscountGoodsByDiscountIds(Long[] discountIds);

    public int batchInsertDiscountGift(MkDiscount mkDiscount);

    public int deleteMkDiscountGiftByIds(Long[] ids);

    public int deleteMkDiscountGiftByDiscountId(Long discountId);

    public int deleteMkDiscountGiftByDiscountIds(Long[] discountIds);
}
